package com.dragon.app.design.pattern.singleton;


/**
 * 
 * <p>class: Singleton4</p>  
 * <p>Description: 单例模式 静态内部类方式实现</p>  
 * @author SmallDragon
 * @date 2019年3月26日
 *
 */
public class Singleton4 {


	private Singleton4() {
	}

	public static Singleton4 getInstance() {
		return InnerClass.instance;
	}

	private static class InnerClass {
		private static Singleton4 instance = new Singleton4();
	}
}
